namespace TangMonk.Models;

public class RequestResult
{
    public string Action { get; set; }
    public string Result { get; set; } = string.Empty;
    public bool Success { get; set; }

    public RequestResult()
    {
        Action = "default init";
        Success = true;
    }
    public RequestResult(string action, bool success = false)
    {
        Action = action;
        Success = success;
    }
}

public class RequestUserResult
{
    public RequestResult BaseQueryResult { get; set; }
    public List<User> Users { get; set; }
    public int Count { get; set; }

    public RequestUserResult(List<User> users, RequestResult baseQueryResult)
    {
        Users = users;
        Count = users.Count;
        BaseQueryResult = baseQueryResult;
    }
}